package com.backend.demo.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.backend.demo.baseDAO.BaseDao;
import com.backend.demo.entities.Role_Permission;

/**
 * 给角色授权DAO
 * @author Administrator
 *
 */
@SuppressWarnings("unchecked")
@Repository
public class Role_Permission_Dao extends BaseDao<Role_Permission, Long>{
	
	/**
	 * 授予一个或者多个权限
	 * @param rolePermissions
	 */
	public void grantPermissions(List<Role_Permission> rolePermissions){
		saveOrUpdateBatch(rolePermissions);
	}
}
